package com.oceansoft.mobile.econsole.modules.weixin.persistence;

import com.oceansoft.mobile.econsole.modules.base.entity.Query;
import com.oceansoft.mobile.econsole.modules.weixin.entity.TcAdvice;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * 
 * @author jin.xu
 * @createTime 2015年4月14日 下午5:09:33
 * @packagePath com.oceansoft.mobile.econsole.modules.weixin.persistence.ITcAdviceMapper.java
 */
@Repository
public interface ITcAdviceMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TcAdvice record);

    int insertSelective(TcAdvice record);

    TcAdvice selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TcAdvice record);

    int updateByPrimaryKey(TcAdvice record);
    
    /**
     * 分页加载
     *
     * @param query
     * @return
     */
    List<TcAdvice> findAdviceListByPage(Query query);
    
    TcAdvice findAdviceById(int id);
    
    int updateById(TcAdvice advice);
}